import React from 'react';
import { createRoot,hydrateRoot } from 'react-dom/client';
import App from './App';
import { BrowserRouter } from 'react-router-dom'
const root = document.getElementById('root');
// createRoot(root).render(<App />);
// hydrateRoot(root, <App />) //进行水合操作
hydrateRoot(root, <BrowserRouter><App /></BrowserRouter>) //进行水合操作,并且支持路由
